package com.geek.controller;

import com.geek.bean.BaseRespVo;
import com.geek.bean.PageData;
import com.geek.service.IssueService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/wx/issue")
public class WxIssueController {
    @Autowired
    IssueService issueService;
    @GetMapping("list")
    public BaseRespVo list(Integer page,Integer limit){
        // 获取微信问题列表
        PageData data = issueService.list(page,limit);
        return BaseRespVo.ok(data);
    }
}
